package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.TradingPoolAccount;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author PC
 * @description 针对表【sc_trading_pool_account(交易池账户)】的数据库操作Mapper
 * @createDate 2024-10-26 13:52:01
 * @Entity com.sc.nft.entity.TradingPoolAccount
 */
public interface TradingPoolAccountMapper extends BaseMapper<TradingPoolAccount> {

    int addGiftIncomeAccount(@Param("id") Long id, @Param("amount") BigDecimal amount);

    int reduceGiftIncomeAccount(@Param("id") Long id, @Param("amount") BigDecimal amount);

    int addFrozenAccount(@Param("id") Long id, @Param("amount") BigDecimal amount);

    int reduceFrozenAccount(@Param("id") Long id, @Param("amount") BigDecimal amount);

    int frozenToGiftIncomeAccount(@Param("id") Long id, @Param("amount") BigDecimal amount);

    /**
     * 礼包收入账户入金
     * @param daoId
     * @param amount
     * @return
     */
    int depositIntoTheGiftPackageAccount(@Param("daoId") Long daoId, @Param("amount") BigDecimal amount);

}




